<%= form_for @admin_user, :url => {:controller => "admin", :action => "create_new_admin" } do |f| %>
  
	<% if @admin_user.errors.any? %>
		<div class="error_messages">
  			<h2>Form is invalid</h2>
  			<ul>
				<% for message in @admin_user.errors.full_messages %>
  					<li><%= message %></li>
				<% end %>
  			</ul>
		</div>
	<% end %>
  
	<%= f.label :email %>p
	<%= f.text_field :email %><br />
	<%= f.label :password %>
	<%= f.password_field :password %><br />
	<%= f.label :password_confirmation %>
	<%= f.password_field :password_confirmation %><br />
	<%= f.submit %>	
<% end %>